﻿using Coolzon.UI.Core.Parts.Widgets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Core.Runtime.Script
{
    public class ImageScriptObject : PartScriptObject
    {
        public ImageScriptObject(Image image)
            : base(image)
        {

        }
        public string Source
        {
            get
            {
                Image label = GetTarget<Image>();
                if (label != null)
                    return label.Source;
                return null;
            }
            set
            {
                Image label = GetTarget<Image>();
                if (label != null)
                    label.Source = value;
            }
        }
    }
}
